package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生证书
 */
@Data
public class StudentCertificate implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 证书编号
     */
    private String certificateCode;

    /**
     * 证书扫描件
     */
    private String image;

    /**
     * 证书id
     */
    private Integer certificateId;

    /**
     * 学生属性
     */
    private Student student;

    /**
     * 证书属性
     */
    private Certificate certificate;

    /**
     * 租户编码
     */
    private String teamCode = BaseTeamEnum.BASE.getValue();

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}